package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(description = "t_user_details")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_user_details")
public class UserDetails {
    /**
     * 主键
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "主键",hidden = true)
    private String id;

    /**
     * 关联用户ID
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "关联用户ID")
    private String userId;

    /**
     * 真实姓名
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "真实姓名")
    private String name;

    /**
     * 身份证号码
     */
    @TableField(value = "id_number")
    @ApiModelProperty(value = "身份证号码")
    private String idNumber;

    /**
     * 户口所在地
     */
    @TableField(value = "`location`")
    @ApiModelProperty(value = "户口所在地")
    private String location;

    /**
     * 版本号
     */
    @TableField(value = "version")
    @ApiModelProperty(value = "版本号")
    private String version;
}
